using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace NNLInterface
{
    public partial class rptProcessCard : DevExpress.XtraReports.UI.XtraReport
    {
        public rptProcessCard()
        {
            InitializeComponent();
            this.PrintingSystem.ShowMarginsWarning = false;
            for (int i = 0; i < this.tableRow.Cells.Count; i++)
            {

                if (this.tableRow.Cells[i].Name.ToLower().Substring(0, 3) == "lbl" && this.tableRow.Cells[i].Name.ToLower() != "lblprono")
                {
                    this.tableRow.Cells[i].DataBindings.Add("Text", null, this.tableRow.Cells[i].Name.Substring(3));
                }
            }

            

            this.lblCustomerCode.DataBindings.Add("Text", null, "CustNo");
            this.lblOrderUser_UCODR.DataBindings.Add("Text", null, "OrderNo");
            this.lblorderQty.DataBindings.Add("Text", null, "OrderQty");
            this.lblMoQty.DataBindings.Add("Text", null, "MoQty");
            this.lblMoCode.DataBindings.Add("Text", null, "MoNo");
            this.lblItemCode.DataBindings.Add("Text", null, "ProcNo");
            this.lblSpec1Code.DataBindings.Add("Text", null, "ProcSpec");
            this.lbltotalAccount.DataBindings.Add("Text", null, "totalAccount");
            this.lblStartTime.DataBindings.Add("Text", null, "StartTime");
            this.lblTranNo.DataBindings.Add("Text", null, "TranNo");
            this.lbldeptNo.DataBindings.Add("Text", null, "deptNo");
            this.lblOrderUser_UBOM.DataBindings.Add("Text", null, "OrderUser_UBOM");
            this.lblComments.DataBindings.Add("Text", null, "Comments");
           
            this.GroupHeader1.GroupFields.AddRange(new DevExpress.XtraReports.UI.GroupField[] {
            new DevExpress.XtraReports.UI.GroupField("MoNo", DevExpress.XtraReports.UI.XRColumnSortOrder.Ascending)});
        }

    }
}
